package chixing.day06.inherited;

/**
 * 继承
 * 1.class B extend A{....}
 * 2.超级父类object
 * 3.一个类只有一个父类（只有一个直接父类）
 */
public class AccountTest {
    public static void main(String[] args) {
        //创建savingaccount，creditaccount对象
        SavingAccount savingAccount1 = new SavingAccount();

        savingAccount1.setAccNo("622289384333");
        savingAccount1.setAccName("allen");
        savingAccount1.setAccTelno(1594950494L);
        savingAccount1.setSa("储蓄账户");

        savingAccount1.deposit(100);
        savingAccount1.withdraw(100);

        SavingAccount savingAccount2 = new SavingAccount("3739483930","katy","32938209022",184495504904L,100,"储蓄账户");

    }
}
